﻿namespace MSSqlSchemaDoc.Core.DataStructures
{
    using System;
    using System.Xml.Serialization;

    /// <summary>
    /// Represents an event that fires a trigger.
    /// </summary>
    [Serializable()]
    public class TriggerEvent
    {
        /// <summary>
        /// Initializes a new instance of the TriggerEvent class.
        /// </summary>
        public TriggerEvent()
        {
        }

        /// <summary>
        /// Initializes a new instance of the TriggerEvent class.
        /// </summary>
        /// <param name="name">The name of the event.</param>
        public TriggerEvent(string name)
        {
            this.Name = name;
        }
        
        /// <summary>
        /// Gets or sets the name of the event that fires the trigger.
        /// </summary>
        [XmlAttribute()]
        public string Name { get; set; }
    }
}
